1 using System;
2 using
System.Collections.Generic;
3 using
System.ComponentModel;
4 using
System.Data;
5 using
System.Drawing;
6 using
System.Linq;
7 using
System.Text;
8 using
System.Windows.Forms;
9
10 namespace
WarehouseManagementSystem
11 {
12     
public partial class frmSplash : Form
13     {
14         
public frmSplash()
15         {
16             InitializeComponent();
17         }
18
19         
private void timer1_Tick(object sender, EventArgs e)
20         {
21             frmLogin frm =
new frmLogin();
22             progressBar1.Visible =
true;
23
24             
this.progressBar1.Value = this.progressBar1.Value + 2;
25             
if (this.progressBar1.Value == 10)
26             {
27                 label3.Text =
"Reading modules..";
28             }
29             
else if (this.progressBar1.Value == 20)
30             {
31                 label3.Text =
"Turning on modules.";
32             }
33             
else if (this.progressBar1.Value == 40)
34             {
35                 label3.Text =
"Starting modules..";
36             }
37             
else if (this.progressBar1.Value == 60)
38             {
39                 label3.Text =
"Loading modules..";
40             }
41             
else if (this.progressBar1.Value == 80)
42             {
43                 label3.Text =
"Done Loading modules..";
44             }
45             
else if (this.progressBar1.Value == 100)
46             {
47                 frm.Show();
48                 timer1.Enabled =
false;
49                 
this.Hide();
50             }
51         }
52
53         
private void frmSplash_Load(object sender, EventArgs e)
54         {
55             progressBar1.Width =
this.Width;
56         }
57     }
58 }


Gõ tìm kiếm nhanh...